cookies

abstract fun cookies(): List<Cookie>

Returns an immutable list of all the cookies available in the cookie store. The list includes both the persistent and session cookies.

The returned cookies are ordered by longest path, then by earliest creation time. Can be empty if there are no cookies in the cookie store.

Throws

when the profile is deleted or its engine is closed


abstract fun cookies(url: String): List<Cookie>

Returns an immutable list of cookies for the given url.

The list includes both the persistent and session cookies.

The returned cookies are ordered by longest path, then by earliest creation time. Can be empty if there are no cookies associated with the given URL in the cookie store.

Parameters

url

the URL of the resource to get cookies from

Throws

when url is empty or blank

when the profile is deleted or its engine is closed